<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录页面</title>
</head>
<body>
<form action="login" method="post">
    <input type="text" name="username" placeholder="请输入用户名"><br>
    <input type="password" name="password" placeholder="请输入密码"><br>
    <input type="submit" value="登录">
</form>
<% if (request.getParameter("error")!= null) { %>
<p style="color: red;">用户名或密码错误，请重新输入！</p>
<% } %>
</body>
</html>